package com.opgea.crm.services.security;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.opgea.crm.domain.entities.security.Resource;
import com.opgea.crm.repository.security.ResourceRepository;
@Service
public class ResourceServiceImpl implements ResourceService{

	@Autowired
	ResourceRepository resourceRepository;
	
	public void create(Resource resource) {
		resourceRepository.create(resource);
	}

	public Resource find(Long id) {
		return resourceRepository.find(id);
	}

	public List<Resource> findAll() {
		return resourceRepository.findAll();
	}

	public void update(Resource resource) {
		resourceRepository.update(resource);
	}

	public void remove(Long id) {
		resourceRepository.remove(id);
	}

}
